package com.hqyj.mall.xiaomimall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@Entity
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Users extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(type= IdType.AUTO)
    private Integer uid; //用户编号
    private String mobile; //手机号码
    private String email; //电子邮箱
    private String username; //用户名
    private String password;
    private boolean flag; //用户的状态  1：用户可用 0：用户禁用
    private String regdate; //注册日期  regDate->reg_date
    //regdate -->regdate
    //isDiscount-->is_discount
    private String tokenName; //登录成功之后的令牌的名字(会员卡的名字)
    private String tokenValue; //登录成功之后令牌的值。(会员卡号)


}
